package com.jsu.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.model.common.dtos.ResponseResult;
import org.example.model.user.pojo.PointDetail;

public interface PointDetailService extends IService<PointDetail> {

    /**
     * 根据userId和ruleId查找距离当前时间最近的签到记录
     * @param userId
     * @param ruleId
     * @return PointDetail
     */
    PointDetail getUserPointDetail(int userId,int ruleId);

    /**
     * 返回当前用户的积分明细
     * @return pointDetail集合
     */
    ResponseResult getPointDetail(String token);

    /**
     * 添加积分明细记录
     * @param pointDetail
     * @return
     */
    ResponseResult addPointDetail(PointDetail pointDetail);


}
